package ExerciseGroup;
/*
* 打印1~100之间所有是七的倍数的整数的个数及总和
*
* */

public class OneHundredTimesOfSeven {
    public static void main(String[] args) {

        int sum = 0;
        int count = 0;

        for (int timesOfSeven = 1; timesOfSeven <= 100; timesOfSeven++){
            if (timesOfSeven % 7 == 0){
                sum = sum + timesOfSeven;
                System.out.println(timesOfSeven);
                count++;
            }
        }
        System.out.println("100之间所有的七的倍数的和是：" + sum);
        System.out.println("100之间所有的七的倍数的个数是：" + count);

    }
}
